home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / values.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  1.6 KB  |  64 lines

  1. /*  values.h
  2.  
  3.     Symbolic names for important constants, including machine
  4.     dependencies. A System V compatible header.
  5.  
  6. */
  7.  
  8. /*
  9.  *      C/C++ Run Time Library - Version 9.0
  10.  *
  11.  *      Copyright (c) 1987, 1998 by Borland International
  12.  *      All Rights Reserved.
  13.  *
  14.  */
  15. /* $Revision:   9.1  $ */
  16.  
  17. #if !defined(__VALUES_H)
  18. #define __VALUES_H
  19.  
  20. #if !defined(___DEFS_H)
  21. #include <_defs.h>
  22. #endif
  23.  
  24. #define BITSPERBYTE 8
  25. #define MAXSHORT    0x7fff
  26.  
  27. #define MAXINT      0x7fffffff
  28. #define HIBITS      0x80000000
  29. #define HIBITI      0x80000000
  30.  
  31. #define MAXLONG     0x7fffffff
  32. #define HIBITL      0x80000000
  33.  
  34. #define DMAXEXP     308
  35. #define FMAXEXP     38
  36. #define DMINEXP     -307
  37. #define FMINEXP     -37
  38.  
  39. #define MAXDOUBLE   1.7976931348623158E+308
  40. #define MAXFLOAT    3.40282347E+38F
  41. #define MINDOUBLE   2.2250738585072014E-308
  42. #define MINFLOAT    1.17549435E-38F
  43. #define MAXLDOUBLE  1.1897314953572317649E+4932L
  44. #define MINLDOUBLE  3.362103143112094E-4917L /* This isn't completely
  45.                                                 accurate, but it will do for
  46.                                                 now. The real value should
  47.                                                 be: 3.362103143112094E-4932L */
  48.  
  49. #define DSIGNIF     53
  50. #define FSIGNIF     24
  51.  
  52. #define DMAXPOWTWO  0x3FF
  53. #define FMAXPOWTWO  0x7F
  54. #define DEXPLEN     11
  55. #define FEXPLEN     8
  56. #define EXPBASE     2
  57. #define IEEE        1
  58. #define LENBASE     1
  59. #define HIDDENBIT   1
  60. #define LN_MAXDOUBLE    7.0978E+2
  61. #define LN_MINDOUBLE    -7.0840E+2
  62.  
  63. #endif  /* __VALUES_H */
  64.